#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2020-05-22 23:23
# @Author  : Sunnn
# @File    : RequestTools.py
# @Software: PyCharm
# @intro   :
import requests


def get_session_cookies(session_obj):
    """
        将seesion对象的的cookies转为字典
    :param session_obj: Session对象
    :return: 字典
    """
    return requests.utils.dict_from_cookiejar(session_obj.cookies)
